package com.youkeyi.ddy.cloud.common.api.basic.hr.employee.training;

import com.youkeyi.ddy.cloud.common.api.basic.hr.employee.training.dto.HrEmployeeTrainingListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.hr.employee.training.param.HrEmployeeTrainingCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.hr.employee.training.param.HrEmployeeTrainingDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.hr.employee.training.param.HrEmployeeTrainingQueryCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.hr.employee.training.param.HrEmployeeTrainingUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * HrEmployeeTrainingCloudServiceFallback
 *
 * @author  liuxiawang
 * @Date 2024/2/19 2:32 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/hr/employee/training/fallback")
public class HrEmployeeTrainingCloudServiceFallback implements HrEmployeeTrainingCloudService {

    @Override
    public HrEmployeeTrainingListCloudDto query(HrEmployeeTrainingQueryCloudParam param) {
        return new HrEmployeeTrainingListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(HrEmployeeTrainingCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(HrEmployeeTrainingUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(HrEmployeeTrainingDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
